K, KB, KN, KS, KV (Display Stack Backtrace) 

Syntax

[[thread]] K[[BNSV]] [[framecount]]

Parameters

thread

The thread whose stack is to be displayed. See Process and Thread Syntax2LMXWU for information on the thread syntax.

framecount

Number of stack frames to display.

 

Description

Displays the stack frame of the given thread. Each display line shows the name or address of the procedure called, the arguments used on the call, and the address of the statement that called it. You can use any or all of the options in a single command; for example, K, KB, and KBNSV are valid commands. The following table describes the effect of the options:

Option

Effect

none

The K command without any options displays the basic call stack based on debugging information in the executable. It displays the frame pointer, return address, and function names.

B

The B option causes the K command to additionally display the first three parameters to the functions.

N

The N option causes the K command to additionally display the frame numbers for the calls.

S

The S option causes the K command to additionally display source module and line number information for the calls.

V

The V option causes the K command to additionally display runtime function information.